#include <gtest/gtest.h>

#include "../vas_zk.h"

using namespace vas;
TEST(ZkTest, GetChannelFromHandlePath) {
    std::string channel = "channel_tt1";
    std::stringstream path;
    path << CHANNEL_ROOT << "/" << channel << "/" << HANDLE_NODE;
    std::string get_channel = GetChannelFromHandlePath(path.str(), CHANNEL_ROOT, HANDLE_NODE);
    ASSERT_EQ(channel, get_channel);
}



